import {
	instance
} from "@/utils";

export * from './chat'
/**
 * 作品列表
 * @param {*} params
 * @returns
 */
export async function workListApi(params) {
	return instance.request({
		url: "/mall/work/",
		method: "get",
		params,
	});
}

/**
 * 作品详情
 * @param {*} params
 * @returns
 */
export async function workDetailApi(params) {
	return instance.request({
		url: "/mall/work/" + params.id,
		method: "get",
		params,
		// 自定义返回内容
		custom: {
			verification: true
		}
	});
}
/**
 * 作品 随机
 * @param {*} params
 * @returns
 */
export async function workRandomApi(params) {
	return instance.request({
		url: "mall/work/recommend",
		method: "get",
		params,
	});
}

/**
 *用户信息
 * @param {*} params
 * @returns
 */
export async function userInfoApi(id) {
	return instance.request({
		url: "users/users/" + id,
		method: "get",
		// 自定义返回内容
		custom: {
			verification: true
		}
	});
}


/**
 * 相册列表
 * @param {*} params
 * @returns
 */
export async function albumListApi(params) {
	return instance.request({
		url: "/mall/album/",
		method: "get",
		params,
	});
}